/* Copyright (c) 2008-2023, Quantcast Corp. https://www.quantcast.com/legal/license */ !function(){"use strict";var e="qcSes";function t(){var e=r();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}))}var n=function(){try{if(!window.sessionStorage)return t()}catch(e){return t()}var n;try{if(n=window.sessionStorage.getItem(e))return n}catch(e){return t()}n=t();try{window.sessionStorage.setItem(e,n)}catch(e){}return n}();function r(){return(new Date).getTime()}function o(){return new Date}function a(e){var t=new Date(2e3,e,1,0,0,0,0),n=t.toUTCString(),r=new Date(n.substring(0,n.lastIndexOf(" ")-1));return t.getTime()-r.getTime()}function i(){return Math.round(2147483647*Math.random())}var c=/qcdbgc=1$/.test(window.location.toString());function u(e,t){if("undefined"!=typeof console){var n="ERROR"===e?" QuantJS ":" QuantJS ";console.log.apply(console,[n].concat([].slice.call(t)))}}var s=function(){for(var e=[],t=0;t0;){var e=g.shift();e&&e()}}function m(e){v?e():g.push(e)}document.readyState in{complete:!0,interactive:!0}&&(v=!0),document.addEventListener?(document.addEventListener("DOMContentLoaded",h,!1),window.addEventListener("load",h,!1)):document.attachEvent&&window.attachEvent&&(document.attachEvent("onreadystatechange",h),window.attachEvent("onload",h));var y=function(e,t){var n=null,r=[];m((function(){n=t.head||t.getElementsByTagName("head")[0]}));var o=function(e){var t=new Image;return t.src=e,t};return{image:function(e){return f("Loading Image",e),new Promise((function(t,n){var a=o(e);r.push(a),a.onload=function(){t(a),r.shift(),delete a.onload,delete a.onerror},a.onerror=n}))},beacon:function(t){var n=e.navigator;n&&n.sendBeacon?n.sendBeacon(t):o(t)},script:function(e){return new Promise((function(r,o){m((function(){var a=function(e,n,r){var o=t.createElement("script");o.type="text/javascript",o.src=e;var a=function(){n(o),o.onreadystatechange=null,o.onload=null,o.onerror=null};return o.onload=a,o.onreadystatechange=function(){o.readyState in{loaded:1,complete:1}&&a()},o.onerror=r,o}(e,r,o);n&&(n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a))}))}))}}};function w(e,t,n){e.addEventListener?e.addEventListener(t,n):"function"==typeof jQuery?jQuery(e).on(t,n):e.attachEvent&&e.attachEvent("on"+t,n)}var _,q,b=function(e,t,n,o,a,i,c,u){var s,f=function(e){var t=e.source[0];return"p"+e.consent[0]+("a"==t?"e":"i")};s="object"==typeof o&&"function"==typeof o.callApi?function(e,t,n,r){var i=o.callApi(t,r,u,a,n);return e.cm=f(i),Promise.resolve(!0)}:function(o,i,c,s){return e.depth>0&&(w(t,"message",(function(e){var t=e.data;if("string"==typeof t&&t.indexOf("PrivacyManagerAPI")>0)try{t=JSON.parse(t)}catch(e){return}else if(void 0!==t.PrivacyManagerAPI){var n=t.PrivacyManagerAPI;o.cm=f(n)}})),n.postMessage(JSON.stringify({PrivacyManagerAPI:{timestamp:r(),action:i,self:s,domain:u,authority:a,type:c}}),"*")),Promise.resolve(!0)},this.consent=function(e){return s(e,"getConsent",i,c)},this.parameters={}},x="__uspapiLocator",S=function(e,t){var n;if("function"==typeof t.__uspapi){var o=t.__uspapi;n=function(){return new Promise((function(e,t){o("getUSPData",1,(function(n){n&&"string"==typeof n.uspString?e(n):t(n)}))})).catch((function(e){return l("uspapi: unsuccessful",e),!0}))}}else{e.locate(x);var a={};w(t,"message",(function(e){var t=e.data;if(null!=t){if("string"==typeof t&&"{"==t[0])try{t=JSON.parse(t)}catch(e){return}if(Object.prototype.hasOwnProperty.call(t,"__uspapiReturn")){var n=t.__uspapiReturn,r=n.callId,o=a[r];if(void 0===o)return;n.success?o[0](n.returnValue):o[1](n.returnValue)}}})),n=function(){var t=e.locate(x);if(!t)return Promise.resolve(void 0);var n=r();return new Promise((function(e,r){a[n]=[e,r],t.postMessage({__uspapiCall:{command:"getUSPData",version:1,callId:n}},"*")}))}}this.consent=function(e){return n().then((function(t){if(t&&"string"==typeof t.uspString){var n=t.uspString;return e.us_privacy=n,"Y"!=n[2]}return!0}))}},P=function(e){var t,n={},r=function(){return void 0===t&&(t=Promise.all(e.map((function(e){return e.consent(n)}))).then((function(e){return e.reduce((function(e,t){return e&&t}),!0)}))),t};this.consent=r,this.wrap=function(e){return function(){var t=this,n=arguments;return r().then((function(r){if(r)return e.apply(t,n)}))}},this.parameters=n};!function(e){e.getTCData="getTCData",e.ping="ping",e.addEventListener="addEventListener",e.removeEventListener="removeEventListener"}(_||(_={})),function(e){e.getInAppTCData="getInAppTCData",e.getVendorList="getVendorList"}(q||(q={}));var E="tcf2",I=[1,3,7,8,9,10],O=[1,3],C=[1,3],j="__tcfapiReturn";function A(e,t){var n=t.gdprApplies,r=t.purpose,o=t.vendor,a=o&&o.consents&&o.consents[11],i=o&&o.legitimateInterests&&o.legitimateInterests[11],c=t.publisher?t.publisher.restrictions:{};return!n||e.map((function(e){var t=!!r.consents&&r.consents[e],n=!!r.legitimateInterests&&r.legitimateInterests[e],o=c&&c[e]?c[e][11]:null;return!(0===o||(!a||!t||2===o||-1==O.indexOf(e)&&1!==o)&&(1===o||!i||!n||-1!=C.indexOf(e)||-1!=O.indexOf(e)&&2!==o))})).reduce((function(e,t){return e&&t}),!0)}var R=function(e,t){var n;this.consent=function(o){var a,i;return void 0===n&&("function"==typeof t.__tcfapi?(i=t.__tcfapi,a=new Promise((function(e,t){i(_.addEventListener,2,(function(n,r){if(r){var o=n.eventStatus;n.gdprApplies&&"useractioncomplete"!==o&&"tcloaded"!==o||e(n)}else t(n)}))}))):a=function(){var n={},o={};w(t,"message",(function(e){var t=e.data;if(void 0!==t){if("string"==typeof t&&"{"==t[0])try{t=JSON.parse(t)}catch(e){return}if(Object.prototype.hasOwnProperty.call(t,j)){var r=t[j],a=r.callId,i=n[a];if(void 0===i)return;var c=r.returnValue;r.success?"addEventListener"===o[a]&&c.gdprApplies&&"useractioncomplete"!==c.eventStatus&&"tcloaded"!==c.eventStatus||i[0](c):i[1](c)}}else l(E+": Recieved undefined message",{})}));var a=e.locate("__tcfapiLocator");if(!a)return Promise.resolve({gdprApplies:!1});var i=r();return new Promise((function(e,t){var r;n[i]=[e,t],o[i]=_.addEventListener;var c=((r={}).__tcfapiCall={command:_.addEventListener,version:2,callId:i},r);a.postMessage(JSON.stringify(c),"*")}))}(),n=a.then((function(e){var t=!1;return"boolean"==typeof e.gdprApplies?t=e.gdprApplies:"string"==typeof e.gdprApplies&&(t="false"!=e.gdprApplies),t?(o.gdpr=1,o.gdpr_consent=e.tcString):o.gdpr=o.gdpr||0,A(I,e)})).catch((function(e){return l(E+": unsuccessful",e),o.gdpr=o.gdpr||0,!0}))),n}};R.resolveConsent=A;var D=R,L="__gppReturn",T="addEventListener",M=function(){function e(e,t){this.consentPromise=null,this.windows=e,this.win=t}return e.prototype.consent=function(e){return this.consentPromise?this.consentPromise:(t="function"==typeof this.win.__gpp?this.addEventListenerViaAPI(this.win.__gpp,e):this.addEventListenerViaEvent(e),this.consentPromise=t,t);var t},e.prototype.cmpReady=function(e){return"signalStatus"===e.eventName&&"ready"===e.data||"listenerRegistered"===e.eventName&&!0===e.data&&"ready"===e.pingData.signalStatus},e.prototype.addEventListenerViaAPI=function(e,t){var n=this;return new Promise((function(r){e("addEventListener",(function(e,o){if(n.cmpReady(e)){var a=e.pingData.gppString;t.gpp=a,t.gpp_sid=e.pingData.applicableSections.join(","),r(!0)}}))}))},e.prototype.addEventListenerViaEvent=function(e){var t=this,n=this.windows.locate("__gppLocator");if(!n)return Promise.resolve(!0);var o={},a={},i=r();return w(window,"message",(function(n){var r=n.data;if(void 0!==r){if("string"==typeof r&&"{"==r[0])try{r=JSON.parse(r)}catch(e){return}if(Object.prototype.hasOwnProperty.call(r,L)){var i=r[L],c=i.callId,u=o[c];if(void 0===u)return;var s=i.returnValue;if(i.success){if(a[c]!==T)return;if(!t.cmpReady(s))return;var f=s.pingData.gppString;e.gpp=f,e.gpp_sid=s.pingData.applicableSections.join(","),u[0](!0)}else u[1]()}}else l("gpp: Recieved undefined message",{})})),new Promise((function(e,t){var r;o[i]=[e,t],a[i]=T;var c=((r={}).__gppCall={command:T,callId:i},r);n.postMessage(JSON.stringify(c),"*")}))},e}();function N(e,t){return t>>>e|t<<32-e}function U(e){return N(2,e)^N(13,e)^N(22,e)}function z(e){return N(6,e)^N(11,e)^N(25,e)}function k(e){return N(7,e)^N(18,e)^e>>>3}function J(e,t,n){return e&t^~e&n}function V(e,t,n){return e&t^e&n^t&n}var B=function(e,t){var n;for(n=0;n>>0;for(i[a-1][14]=Math.floor(f),i[a-1][15]=l,c=0;c>>10)+p[d-7]+k(p[d-15])+p[d-16]>>>0;var v=r[0],g=r[1],h=r[2],m=r[3],y=r[4],w=r[5],_=r[6],q=r[7];for(d=0;d<64;d++){var b=q+z(y)+J(y,w,_)+n[d]+p[d],x=U(v)+V(v,g,h);q=_,_=w,w=y,y=m+b>>>0,m=h,h=g,g=v,v=b+x>>>0}r[0]=r[0]+v>>>0,r[1]=r[1]+g>>>0,r[2]=r[2]+h>>>0,r[3]=r[3]+m>>>0,r[4]=r[4]+y>>>0,r[5]=r[5]+w>>>0,r[6]=r[6]+_>>>0,r[7]=r[7]+q>>>0}var S=[];for(q=0;q0||"number"==t||"boolean"==t},H=338688e5,$="__qca",G=["4dcfa7079941","127fdf7967f31","588ab9292a3f","32f92b0727e5","22f9aa38dfd3","a4abfe8f3e04","18b66bc1325c","958e70ea2f28","bdbf0cb4bbb","65118a0d557","40a1d9db1864","18ae3d985046","3b26460f55d"],W=function(e,t){var n,r,o,a,i=null;try{a=e.cookie}catch(e){return null}return a?(r=(n=a.indexOf(t+"="))+t.length+1,n>-1&&((o=a.indexOf(";",r))<0&&(o=a.length),i=a.substring(r,o)),i):null};function X(e,t,n){var r=0,a=W(t,$)||function(e,t){var n=null;try{n=e.localStorage.getItem(t)}catch(e){}if(!n)return null;var r=JSON.parse(n);if(o().getTime()>r.expiry){try{e.localStorage.removeItem(t)}catch(e){}return null}return r.value}(e,$),c=function(e){for(var t,n,r,o=(n=B(2166136261,t=e),r=B(3386659096,t),Math.round(Math.abs(n*r)/65536).toString(16)),a=0;a0)){for(e in T(),De)Object.prototype.hasOwnProperty.call(De,e)&&De[e]&&(t=De[e],n.push(t),delete De[e]);if(1==n.length&&w(n[0]),n.length>1)for(e=0;e0?1:0,K()},V=function(){var e,t,n,r=!0,o=!1;if(arguments.length){for(n=function(e){r?Z(e):w(e,!0),o=!0},e=0;e1?s[i].slice(1):[]).concat(e.v),a=r.apply(null,o),c={qacct:e.p,event:me},a)Object.prototype.hasOwnProperty.call(a,u)&&"qacct"!==u&&(c[u]=a[u]);t(c)}catch(t){l("evalRule",t,{pcode:e.p});continue}},v=function(e){return e.replace(/\./g,"%2E").replace(/,/g,"%2C")},g=function(e){return void 0!==e&&null!=e},k=function(e){var t,n;if(e&&"object"===N(e))for(n=0;n=1e3)return encodeURIComponent(c);g(a)&&g(a.attributes)&&g(a.attributes.property)&&g(a.attributes.property.value)&&g(a.content)&&(n=a.attributes.property.value,r=a.content,n.length>3&&"og:"===n.substring(0,3)&&(c.length>0&&(c+=","),o=r.length>80?80:r.length,c+=v(n.substring(3,n.length))+"."+v(r.substring(0,o))))}return encodeURIComponent(c)},w=function(r,u){var s,f,l,p,d,v,h,m,y,w,_,b=i(),S="",P="",O="",C="",A="1";if(Se=0,g(Te.qpixelsent)||(Te.qpixelsent=[]),g(r)){if("object"===(w=N(r)))l=E("",r,u);else if("array"===w)for(d=0;d